package jtk.project4.fleet.field;

import jtk.project4.fleet.action.AddEditFuelReceiptAction;
import jtk.project4.fleet.action.GeneralTankInformationAction;
import nl.coderight.jazz.action.Action;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.button.PushButton;

public class AddEditDeleteInventoryReceiptField extends GroupControl{
	private PushButton tambahButton;
	private PushButton editButton;
	private Action generalTankInformationAction;


	
	public AddEditDeleteInventoryReceiptField(String bindID){
		//	setTitle("header.AddEditPartToPO"); //disesuaikan dengan nama field
			setBindID(bindID);
			createAction();
			createFields();
			createLayout();
		}
	
		private void createAction(){
			generalTankInformationAction = new AddEditFuelReceiptAction();
			
		}
		
		private void createFields()
		{
			tambahButton = new PushButton(generalTankInformationAction);		
	
		}
		
		private void createLayout()
		{
			setLayout(new FormLayout())
			
			.addField(tambahButton)
			;
		}
}